<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <title>患者_患者病历信息</title>
    <link rel="stylesheet" type="text/css" href="../css/api.css" />
    <link rel="stylesheet" type="text/css" href="../css/style.css" />
    <link rel="stylesheet" type="text/css" href="../css/aui.2.0.css" />
    <link rel="stylesheet" type="text/css" href="../css/BasicPatientInformation.css" />
</head>

<body>
    <main id="app">
        <div class="aui-padded-5" id="tab1-con">
            <section class="aui-content" v-for="(itme,index) in MedicalRecord">
                <div class="aui-card-list">
                    <div class="aui-card-list-header">
                        主诉：
                    </div>
                    <div class="aui-card-list-footer">
                      {{itme.F_zhusu}}
                    </div>
                </div>
                <div class="aui-card-list">
                    <div class="aui-card-list-header">
                        现病史：
                    </div>
                    <div class="aui-card-list-footer">
                      {{itme.F_xianbingshi}}
                    </div>
                </div>
                <div class="aui-card-list">
                    <div class="aui-card-list-header">
                        既往史：
                    </div>
                    <div class="aui-card-list-footer">
                      {{itme.F_jiwangshi}}
                    </div>
                </div>
                <div class="aui-card-list">
                    <div class="aui-card-list-header">
                        体检：
                    </div>
                    <div class="aui-card-list-footer">
                      {{itme.F_tijian}}
                    </div>
                </div>
                <div class="aui-card-list">
                    <div class="aui-card-list-header">
                        辅助检查：
                    </div>
                    <div class="aui-card-list-footer">
                      {{itme.F_fuzhujiancha}}
                    </div>
                </div>
                <div class="aui-card-list">
                    <div class="aui-card-list-header">
                        用药：
                    </div>
                    <div class="aui-card-list-footer">
                      {{itme.F_yongyao}}
                    </div>
                </div>
            </section>
        </div>
    </main>
</body>
<script type="text/javascript" src="../script/api.js"></script>
<script src="../script/vue.js" charset="utf-8"></script>
<script src="../js/ToConfigure.js" charset="utf-8"></script>
<script type="text/javascript">
    var vm = null;
    apiready = function() {
        //接收患者ID
        var F_ID = api.pageParam.F_ID;

        vm = new Vue({
            el: '#app',
            data: {
                F_ID: 0, //患者唯一标识
                MedicalRecord: [], //患者病历
                Url_IP: ""
            },
            created() {
                //获取所属医院IP地址
                this.Url_IP = ToConfigure_IP("Gorgeous");

                if (F_ID !== undefined && F_ID !== '') {
                    this.F_ID = F_ID;
                }
                //判断预约这ID不为空
                if (this.F_ID !== null && this.F_ID !== '' && this.F_ID !== undefined) {
                    var JsParms = new Object();
                    JsParms.F_reserveId = this.F_ID;
                    var jsonStr = JSON.stringify(JsParms);
                    //查询患者记录
                    api.ajax({
                        url: this.Url_IP + 'HyperbaricOxygen/DoctorsAdvice/Query_DoctorsAdvice',
                        method: 'post',
                        data: {
                            values: {
                                parms: jsonStr
                            }
                        }
                    }, function(ret, err) {
                        vm.MedicalRecord = ret;
                    });
                }

            }
        });
    }
</script>

</html>
